﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003D3 RID: 979
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DiscardRelicScRsp : IMessage<DiscardRelicScRsp>, IMessage, IEquatable<DiscardRelicScRsp>, IDeepCloneable<DiscardRelicScRsp>, IBufferMessage
	{
		// Token: 0x17000C7E RID: 3198
		// (get) Token: 0x06002BA5 RID: 11173 RVA: 0x000784C8 File Offset: 0x000766C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DiscardRelicScRsp> Parser
		{
			get
			{
				return DiscardRelicScRsp._parser;
			}
		}

		// Token: 0x17000C7F RID: 3199
		// (get) Token: 0x06002BA6 RID: 11174 RVA: 0x000784CF File Offset: 0x000766CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DiscardRelicScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C80 RID: 3200
		// (get) Token: 0x06002BA7 RID: 11175 RVA: 0x000784E1 File Offset: 0x000766E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DiscardRelicScRsp.Descriptor;
			}
		}

		// Token: 0x06002BA8 RID: 11176 RVA: 0x000784E8 File Offset: 0x000766E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DiscardRelicScRsp()
		{
		}

		// Token: 0x06002BA9 RID: 11177 RVA: 0x000784F0 File Offset: 0x000766F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DiscardRelicScRsp(DiscardRelicScRsp other) : this()
		{
			this.isDiscard_ = other.isDiscard_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002BAA RID: 11178 RVA: 0x00078521 File Offset: 0x00076721
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DiscardRelicScRsp Clone()
		{
			return new DiscardRelicScRsp(this);
		}

		// Token: 0x17000C81 RID: 3201
		// (get) Token: 0x06002BAB RID: 11179 RVA: 0x00078529 File Offset: 0x00076729
		// (set) Token: 0x06002BAC RID: 11180 RVA: 0x00078531 File Offset: 0x00076731
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsDiscard
		{
			get
			{
				return this.isDiscard_;
			}
			set
			{
				this.isDiscard_ = value;
			}
		}

		// Token: 0x17000C82 RID: 3202
		// (get) Token: 0x06002BAD RID: 11181 RVA: 0x0007853A File Offset: 0x0007673A
		// (set) Token: 0x06002BAE RID: 11182 RVA: 0x00078542 File Offset: 0x00076742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06002BAF RID: 11183 RVA: 0x0007854B File Offset: 0x0007674B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DiscardRelicScRsp);
		}

		// Token: 0x06002BB0 RID: 11184 RVA: 0x00078559 File Offset: 0x00076759
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DiscardRelicScRsp other)
		{
			return other != null && (other == this || (this.IsDiscard == other.IsDiscard && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002BB1 RID: 11185 RVA: 0x00078598 File Offset: 0x00076798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsDiscard)
			{
				num ^= this.IsDiscard.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002BB2 RID: 11186 RVA: 0x000785F0 File Offset: 0x000767F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002BB3 RID: 11187 RVA: 0x000785F8 File Offset: 0x000767F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002BB4 RID: 11188 RVA: 0x00078604 File Offset: 0x00076804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.IsDiscard)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.IsDiscard);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002BB5 RID: 11189 RVA: 0x00078660 File Offset: 0x00076860
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsDiscard)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002BB6 RID: 11190 RVA: 0x000786AC File Offset: 0x000768AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DiscardRelicScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsDiscard)
			{
				this.IsDiscard = other.IsDiscard;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002BB7 RID: 11191 RVA: 0x000786FC File Offset: 0x000768FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002BB8 RID: 11192 RVA: 0x00078708 File Offset: 0x00076908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsDiscard = input.ReadBool();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001140 RID: 4416
		private static readonly MessageParser<DiscardRelicScRsp> _parser = new MessageParser<DiscardRelicScRsp>(() => new DiscardRelicScRsp());

		// Token: 0x04001141 RID: 4417
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001142 RID: 4418
		public const int IsDiscardFieldNumber = 9;

		// Token: 0x04001143 RID: 4419
		private bool isDiscard_;

		// Token: 0x04001144 RID: 4420
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04001145 RID: 4421
		private uint retcode_;
	}
}
